package com.hongdee.insurance.car.dao.impl;

import com.hongdee.base.basedao.impl.BaseDaoImpl;
import com.hongdee.insurance.car.dao.ITCrmCarWarningConfDao;
import com.hongdee.insurance.car.entity.TCrmCarWarningConf;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by My on 2017/6/7.
 */
@Component
public class ITCrmCarWarningConfDaoImpl extends BaseDaoImpl implements ITCrmCarWarningConfDao {
    @Override
    public TCrmCarWarningConf info(String id) throws Exception {
        String hql="from TCrmCarWarningConf where id=:id";
        Map<String,Object> params=new HashMap<>();
        params.put("id",id);
        return (TCrmCarWarningConf) this.getHibernateDao().findEntityByHqlWithParams(hql,params);
    }
}
